import VueRouter from 'vue-router'
import index from './components/Index.vue'
import add from './components/Add.vue'

let routerobj = new VueRouter({
  routes: [
    {path:'/',redirect:'/index'},
    { path: '/index', component: index },
    { path: '/add', component: add }
  ]
});

export default routerobj
